/**  
* @Title: ServiceRecordController.java  
* @Description: TODO(用一句话描述该文件做什么)  
* @author 张鑫
* @phone 17561783855  
* @date 2019年6月4日  
*/
package com.fortune.rainshinesystem.controller;

import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.model.SysUsers;
import com.fortune.rainshinesystem.service.ServiceRecordService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**  
* @ClassName: ServiceRecordController  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author 张鑫
* @phone 17561783855
* @date 2019年6月4日  
*    
*/
@RestController
@RequestMapping(value = "/service")
public class ServiceRecordController {
    private static final Logger logger = LoggerFactory.getLogger(UserController.class);

    @Autowired
    private ServiceRecordService service;
    
    /* 获取用户列表 */
    @PostMapping("/list")
    public MsgModel list(@RequestBody SysUsers user) {

        return service.list();
    }
}
